home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Win2K Start Menu 1.xpl < prev    next >
Text File  |  2001-05-14  |  3KB  |  93 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Appearance\Start Menu\Cascaded Items"
  5. "NAME"="Cascade Options"
  6. "VERSION"="2.13"
  7. "OSVERSION"="000111"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Cascade "My Documents""
  10. "TEXT 2"="Cascade "My Pictures""
  11. "TEXT 3"="Cascade "Network and Dial-Up""
  12. "TEXT 4"="Cascade "Control Panel""
  13. "TEXT 5"="Cascade "Printers""
  14. "DESCRIPTION 1"="Some options for the appearance of the Windows 2000/Windows ME/XP Start menu."
  15. "DESCRIPTION 2"="Cascade means: make the items behave like menus with submenus instead of just opening the related folder. "
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20. "COMMENT 2"="Thanks to Pierre and CptSiskoX for the settings and the idea."
  21.  
  22.  
  23. sV1="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeMyDocuments"
  24. sV2="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeMyPictures"
  25. sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeNetworkConnections"
  26. sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadeControlPanel"
  27. sV5="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\CascadePrinters"
  28.  
  29.  
  30. SUB Plugin_Initialize
  31.     s=RegReadValue(sV1) 
  32.     If s="YES" or IsEmpty(s) then SetUIElement 1,true
  33.  
  34.     s=RegReadValue(sV2) 
  35.     If s="YES" or IsEmpty(s) then SetUIElement 2,true
  36.  
  37.     s=RegReadValue(sV3) 
  38.     If s="YES" or IsEmpty(s) then SetUIElement 3,true
  39.  
  40.     s=RegReadValue(sV4) 
  41.     If s="YES" or IsEmpty(s) then SetUIElement 4,true
  42.  
  43.     s=RegReadValue(sV5) 
  44.     If s="YES" or IsEmpty(s) then SetUIElement 5,true
  45. END SUB
  46.  
  47. SUB Plugin_CheckData(ElementIndex)
  48. END SUB
  49.  
  50. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  51.  b=GetUIElement(1)
  52.  if b=true then
  53.     Call RegWriteValue(sV1,"YES",1)
  54.  else
  55.     Call RegWriteValue(sV1,"NO",1)
  56.  end if
  57.  
  58.  b=GetUIElement(2)
  59.  if b=true then
  60.     Call RegWriteValue(sV2,"YES",1)
  61.  else
  62.     Call RegWriteValue(sV2,"NO",1)
  63.  end if
  64.  
  65.  b=GetUIElement(3)
  66.  if b=true then
  67.     Call RegWriteValue(sV3,"YES",1)
  68.  else
  69.     Call RegWriteValue(sV3,"NO",1)
  70.  end if
  71.  
  72.  b=GetUIElement(4)
  73.  if b=true then
  74.     Call RegWriteValue(sV4,"YES",1)
  75.  else
  76.     Call RegWriteValue(sV4,"NO",1)
  77.  end if
  78.  
  79.  b=GetUIElement(5)
  80.  if b=true then
  81.     Call RegWriteValue(sV5,"YES",1)
  82.  else
  83.     Call RegWriteValue(sV5,"NO",1)
  84.  end if
  85.  
  86.  
  87.  'Call Logoff
  88.  Call IndicateSettingChange()
  89. END SUB
  90.  
  91. SUB Plugin_Terminate
  92. END SUB
  93.